//#include <QtCore/QCoreApplication>
#include <iostream>
using namespace std;


void test1();
void test2();
void test3();
int main(int argc, char *argv[])
{
//    QCoreApplication a(argc, argv);

   // return a.exec();

	test3();


	return 0;
}

void test3() {

	char a[] = "Hello\0World";

	cout << a << endl;

}

void test2() {

	int a = 1;
	int d = 2;
	a++;
	int &b = a;
	b++;
	int* c = &b;

	*c = b;

	(*c) ++;

	//&b = d;

	cout << "a Adrss = " << &a << endl;
	cout << "b Adrss = " << &b << endl;
	 cout << "c Adrss = " << c << endl;
	cout << "a = " << a << endl;
	cout << "b = " << b << endl;
	 cout << "c = " << *c << endl;




	

}

void test1() {

	int count = 10;
	int& ref = count;
	count += 10;
	int* ptr = &ref;
	count += 10;
	ptr++;
	cout << "count = " << count << endl;
	cout << "ref = " << ref << endl;
	cout << "ptr = " << &ptr << endl;
	cout << "ptr value = " << *ptr << endl;
	cout << "red addrss = " << &ref << endl;
	cout << "count addrss = " << &count << endl;

}